//import Vue from 'vue'
import VueRouter from 'vue-router'
import router from './src/router'	
import App from './src/App.vue'
import mixins from 'myMixin'
import store from './src/store'
import { sync } from 'vuex-router-sync'


// sync the router with the vuex store.
// this registers `store.state.route`
sync(store, router)


// register global mixins.
Vue.mixin(mixins)



// create the app instance.
// here we inject the router and store to all child components,
// making them available everywhere as `this.$router` and `this.$store`.
new Vue(Vue.util.extend({ el: '#root', router, store }, App))

router.push('/')

